﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace DreamBox.Net.Data
{
    public class DbFields
    {
        private string _name;
        /// <summary>
        /// 字段名
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private Object _value;
        /// <summary>
        /// 字段值
        /// </summary>
        public Object Value
        {
            get { return _value; }
            set { _value = value; }
        }
        private SqlDbType _sqlDbType = 0;
        /// <summary>
        /// 字段类型
        /// </summary>
        public SqlDbType SqlDbType
        {
            get { return _sqlDbType; }
            set { _sqlDbType = value; }
        }
        private int _size = 0;
        /// <summary>
        /// 字段长度
        /// </summary>
        public int Size
        {
            get { return _size; }
            set { _size = value; }
        }

        private ParameterDirection _direction = 0;
        /// <summary>
        /// 参数类型(存储过程专属)
        /// </summary>
        public ParameterDirection Direction
        {
            get { return _direction; }
            set { _direction = value; }
        }
        private DbFieldType _DbFieldType=DbFieldType.Ordinary;
        /// <summary>
        /// 字段属性
        /// </summary>
        public DbFieldType DbFieldType
        {
            get { return _DbFieldType; }
            set { _DbFieldType = value; }
        }
    }
}
